package class3;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.UnsupportedEncodingException;

public class demo2 {
    public static void main(String[] args) throws IOException {
        FileOutputStream out=new FileOutputStream("D:\\temp\\ok.txt");
        String str="你好";
        byte[] b=str.getBytes("UTF-8");
        out.write(b,0,b.length);
        out.close();

    }
}
